# -*- coding: utf-8 -*-
# @Python：3.8
# @项目：happiness_order
# @文件：application.py
# @时间：2025/1/20 11:10
# @作者：yangzhang
# @desc:定义flask应用
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from common.util.log_util import project_path

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = f'sqlite:///{project_path}/data/order.db'
app.config['SQLALCHEMY_ECHO'] = True
db = SQLAlchemy()
db.init_app(app)
